<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsShowTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods_show', function (Blueprint $table) {
            $table->increments('id', 11);
            $table->integer('gid');
            $table->unique('gid');
            $table->string('path', 150);
            $table->unsignedTinyInteger('state')->default(1);
            $table->string('descr', 100)->nullable();
            $table->string('attr', 50)->nullable();
            $table->string('attr1', 100)->nullable();
            $table->string('attr2', 150)->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('goods_show');
    }
}
